---@class Battle.BuffEffect6:Battle.BuffEffectBase
---属性增减buff脚本
local BuffEffect6 = Battle.CreateClass("BuffEffect6",Battle.BuffEffectBase)
Battle.BuffEffect6 = BuffEffect6
function BuffEffect6:OnCreate(buff)
    ---@type Battle.Buffer
    self.buff = buff
    local param = decodeJsonStrToTable(self.buff.cfg.f_EffectParameter)
    self.actionPer = param[1][1]
    self.actor = Battle.ActorManager.GetActor(self.buff.targetId)
end
function BuffEffect6:OnBuffStart()
    self.actor.attrSystem:AddAttr(Battle.AttributeType.ACTION_COST_PER, self.actionPer,true)
end

function BuffEffect6:OnDestroy()
    self.actor.attrSystem:RemoveAttr(Battle.AttributeType.ACTION_COST_PER, self.actionPer,true)
end

return BuffEffect6